home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / malloc_lp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  2.0 KB  |  67 lines

  1. /*
  2.  * defines for the malloc-leap routines.
  3.  *
  4.  * Copyright 1992 by Gray Watson and the Antaire Corporation
  5.  *
  6.  * This file is part of the malloc-debug package.
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library (see COPYING-LIB); if not, write to the
  20.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  * The author of the program may be contacted at gray.watson@antaire.com
  23.  *
  24.  * $Id: malloc_lp.h,v 1.3 1993/03/26 09:16:54 gray Exp $
  25.  */
  26.  
  27. #ifndef __MALLOC_LP_H__
  28. #define __MALLOC_LP_H__
  29.  
  30. #undef    IMPORT
  31. #define    IMPORT        extern
  32.  
  33. /*<<<<<<<<<<  The below prototypes are auto-generated by fillproto */
  34.  
  35. /* to inform the malloc-debug library from which file the call comes from */
  36. IMPORT    char        *_malloc_file;
  37.  
  38. /* to inform the library from which line-number the call comes from */
  39. IMPORT    unsigned int    _malloc_line;
  40.  
  41. /*
  42.  * leap routine to calloc
  43.  */
  44. IMPORT    char    *_calloc_leap(const char * file, const int line,
  45.                   unsigned int elen, unsigned int size);
  46.  
  47. /*
  48.  * leap routine to free
  49.  */
  50. IMPORT    int    _free_leap(const char * file, const int line, char * pnt);
  51.  
  52. /*
  53.  * leap routine to malloc
  54.  */
  55. IMPORT    char    *_malloc_leap(const char * file, const int line,
  56.                   unsigned int size);
  57.  
  58. /*
  59.  * leap routine to realloc
  60.  */
  61. IMPORT    char    *_realloc_leap(const char * file, const int line, char * oldp,
  62.                    unsigned int new_size);
  63.  
  64. /*<<<<<<<<<<   This is end of the auto-generated output from fillproto. */
  65.  
  66. #endif /* ! __MALLOC_LP_H__ */
  67.